package com.totoro.rabbitmq.producer;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2017/9/14.
 */
@RestController
public class SendMsgController {
    @Resource
    SendService sendService ;

    @GetMapping("/send/{queue}/{msg}")
    public String send(@PathVariable String queue, @PathVariable String msg){
        sendService.send(queue,msg);
        return "success" ;
    }
}
